package com.bjsxt.struts2.head.user;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;

import com.bjsxt.commom.action.BasicAction;
import com.bjsxt.user.pojo.AUser;
import com.bjsxt.user.service.IUserService;

@Controller("userAction")
public class UserAction extends BasicAction
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Resource			 
	private IUserService userService;
	
	public String userList()
	{
		Map<String,Object> sourceMap = new HashMap<String, Object>();
		
		List<AUser> list = userService.findUserListService(null, sourceMap);
		this.request.setAttribute("list", list);
		System.out.println(list);
		return "userList";
	}
}
